package com.itheima.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.Select;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Min;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    @NotBlank(message = "用户名不能为空")
    private String name;
    @Min(value = 18,message = "年龄不达标")
    private Integer age;

}
